<?php
	session_start();
	define('DOC_ROOT', dirname(__FILE__));

	chdir(DOC_ROOT.'/config');
	include 'path.php';
	include 'date.php';
	include 'ini_set.php';
	include 'system.php';
	include 'module.php';
	include 'proc.inc.php';

	require_dir(HELPER_PATH,true);
	require_dir(FILTER_PATH,true);
	//require_dir(CLASS_PATH,true);

	$lang = isset($_SESSION['lang'])?$_SESSION['lang']:'ru';

#	if (@ empty($_GET['query_path']) || '/' == $_GET['query_path'])
#		$_GET['query_path'] = '/default';

	$GLOBALS['path'] = $_GET['query_path'];

	chdir(MODULE_PATH);

_m('/$/log/');
_m('/$/error/');
_m('/$/storage/entity/');
//_m('/$/user/');
_log(HOST,$GLOBALS['path']);

?>